<?php
namespace Admin\Controller;
use Think\Controller;
use Think\Uploda;
// 文章内容管理
class ImageCOntroller extends CommonController{
	private $_uploadobj;
	public function __construct()
	{

	}
	public function ajaxuploadimage()
	{
		// var_dump(1);die;
		$upload = D('UploadImage');
		$res = $upload->imageUpload();
		// var_dump($res);die;
		if($res === false){
			return show(0,'上传失败','');
		}else{
			return show(1,'上传成功',$res);
		}
	}
	public function kindupload()
	{
		$upload = D('UploadImage');
		$res = $upload->upload();
		if($res === false){
			return showKind(1,'上传失败');
		}
		return showKind(0,$res);
	}
}